
<!DOCTYPE html>
<html style="overflow-x:hidden;overflow-y:auto;">
	<head>
		<title>管理员列表</title>
		[#include "/admin/include/header.htm"]
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<style type="text/css">.sort{color:#0663A2;cursor:pointer;}</style>
		<script type="text/javascript">
			function page(n,s){
				$("#pageNo").val(n);
				$("#pageSize").val(s);
				$("#searchForm").attr("action","list").submit();
		    	return false;
		    }
			(function(){
				window.COMMON.init();
			});
		</script>
	</head>
	<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="list">用户列表</a></li>
		<li><a href="add">用户添加</a></li>
	</ul>
	<form id="searchForm" class="breadcrumb form-search" action="list" method="post">
		<input id="pageNo" name="pageNo" type="hidden" value="1"/>
		<input id="pageSize" name="pageSize" type="hidden" value="10"/>
		
		<div style="margin-top:8px;">
			<label>用&nbsp;户&nbsp;名：</label><input type="text" maxlength="50" value="" class="input-small" name="userName" id="userName">
			&nbsp;<input type="submit"  value="查找" class="btn btn-primary" id="btnSubmit">
		</div>
	</form>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th class="sort name">登录名</th>
				<th>电话</th>
				<th>邮箱</th>
				<th>状态</th>
				<th>创建时间</th>
				<th>最后登录IP</th>	
				<th>最后登录时间</th>	
				<th>角色</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			[#list page.list as u]
				<tr>
					<td>
						<a href="edit?userId=${u.userId}">${u.userName!}</a>
					</td>
					<td>${u.tel!}</td>
					<td>${u.email!}</td>
					<td>${u.statusValue!}</td>
					<td>[#if u.createTime??]${u.createTime?string('yyyy-MM-dd HH:mm:ss')}[/#if]</td>
					<td>${u.lastLoginIp!}</td>
					<td>[#if u.lastLoginTime??]${u.lastLoginTime?string('yyyy-MM-dd HH:mm:ss')}[/#if]</td>
					<td>
						[#list u.sysRoles as r]
							${r.roleName!},
						[/#list]
					</td>
					<td>
	    				<a href="edit?userId=${u.userId}">修改</a>
						<a href="delete?userId=${u.userId}" data-title="确认要删除该用户吗？"  data-action="comfirm" >删除</a>
					</td>
				</tr>
			[/#list]
		</tbody>
	</table>
	<div class="pagination pagination-right">
		${page}
	</div>
	</body>
</html>
